home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / Technical.Notes / IIGS / TN.IIGS.005 < prev    next >
Encoding:
Text File  |  1991-01-11  |  3.1 KB  |  56 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. Apple IIGS
  8. #5:    Window and Menu Titles
  9.  
  10. Revised by:    Matt Deatherage                                  November 1990
  11. Written by:    Dan Oliver                                        October 1986
  12.  
  13. This Technical Note discusses spacing for both window and menu titles.
  14. Changes since November 1988:  Revised to include new information on the default
  15. placement of the Apple menu.
  16. _____________________________________________________________________________
  17.  
  18. Strings used for window titles should always have a space as the first and last
  19. characters.  This spacing is especially important for windows that use a lined
  20. window title bar since, without the beginning and ending space, theline pattern
  21. in the title bar runs against the title.  Since there will be window editor desk
  22. accessories which allow the user to change the title bar pattern without the
  23. application knowing, you should pad your window titles withspaces even if you
  24. are using black window title bars.
  25.  
  26. The Window Manager does not force spaces on either side of titles to optimize
  27. the window frame drawing speed; it is much faster to let the text punch ahole in
  28. the title bar pattern than to compute the rectangle, fill it, and draw the text.
  29.  
  30. To provide the user with a consistent visual interface, you should also pad your
  31. menu titles with spaces.  If you use either one or two spaces (the Apple IIGS
  32. Finder has used two) before and after each menu title, your menu titles will be
  33. consistent and balanced (two spaces work well in 640 mode where one space
  34. usually suffices for 320 mode).  Although it is true that a menu bar will look
  35. about the same if the first menu title has two spaces before it and no space
  36. following it and all the other menu titles have four spaces before them, when
  37. the user pulls down the menu, the Menu Manager's highlighting will clearly (and
  38. embarrassingly) show the spaces in the menu titles.
  39.  
  40. If you would like to place the Apple menu differently, you must use Menu Manager
  41. calls since you cannot place spaces around the at sign (@) which the Menu
  42. Manager uses to represent the Apple logo in a menu title.  The easiest way to
  43. accomplish this is calling SetMTitleStart to set the starting position for the
  44. leftmost title (usually the Apple menu) within the current menu bar. The Apple
  45. IIGS Finder has used a value of 10 ($0A) pixels.
  46.  
  47. Beginning with System Software 5.0, the Apple menu is placed at a default of 10
  48. pixels from the left edge of the menu bar in 640 mode or five pixels in 320
  49. mode.  If you use SetMTitleStart to change the default, the value is still
  50. interpreted as an absolute placement from the left edge of the menu bar.  For
  51. example, SetMTitleStart(6) moves the Apple menu one pixel to the right of the
  52. default in 320 mode and four pixels to the left of the default in 640 mode.  Be
  53. sure not to use SetMTitleStart to set the Apple menu starting place to the left
  54. of the default, as doing so interferes with the AppleShare activity arrows.
  55.  
  56.